package com.zhengjiang.purchase.dao;

import com.zhengjiang.purchase.model.pojo.ProductPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProductDao {

    public ProductPO getProduct1(Long id);

    public ProductPO getProduct2(Long id);

    public int decreaseProduct1(@Param("id") Long id,@Param("quantity") int quantity);

    public int decreaseProduct2(@Param("id") Long id,@Param("quantity") int quantity,@Param("version") int version);
}
